/**
 * 
 */
package com.star.single;

/**
 * @ClassName: Singleton1
 * @Description: TODO
 * @author starhq
 * @createtime 2014年11月28日 下午2:05:53
 * @email : jian.wang@shinsoft.net
 * @modify by TODO
 * @resaon
 * @edittime
 * @version 1.0
 * @copyright shinsoft
 */
public class Singleton1 {
	// Private constructor prevents instantiation from other classes
	private Singleton1() {
	}

	/**
	 * SingletonHolder is loaded on the first execution of
	 * Singleton.getInstance() or the first access to SingletonHolder.INSTANCE,
	 * not before.
	 */
	private static class SingletonHolder {
		public static final Singleton1 INSTANCE = new Singleton1();
	}

	public static Singleton1 getInstance() {
		return SingletonHolder.INSTANCE;
	}
}
